<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	<title>Default Report Editor</title>
	<link href="../css/default.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="../js/jsx.js"></script>
	<script type="text/javascript" src="../js/jsml.js"></script>
	<script type="text/javascript" src="../js/ui.js"></script>
	<script type="text/javascript" src="../js/ris.js"></script>
	<script type="text/javascript" src="../js/SR.js"></script>
	<script type="text/javascript" src="../js/preview.js"></script>
	<script type="text/javascript" >
		var report = {};
		var errorProvider = new ErrorProvider();

		function onBodyLoad()
		{
			if(!Ris)
				return;

			loadData();
		}

		// this no-arg method must be implemented for the component to save report
		function saveData()
		{
			report.Finding = Field.getValue($("finding"));
			report.Impression = Field.getValue($("impression"));

			var reportJsml = "";
			if (report.Finding || report.Impression || report.structuredReport)
				reportJsml = JSML.create(report, "ReportContent");

			 Ris.setTag("ReportContent", reportJsml);
		}

		function loadData()
		{
			report = JSML.parse(Ris.getTag("ReportContent")) || {};

			if (report != null)
			{
				Field.setValue($("finding"), report.Finding);
				Field.setValue($("impression"), report.Impression);
			}
		}		
</script>
</head>
<body onload="javascript: onBodyLoad()" style="padding-top:0">
	<form id="myForm" style="padding-top:0">
		<p class="sectionheading">Impression</p>
		<textarea style="width:99%" rows="15" border="0" id="impression"></textarea>
		<p class="sectionheading">Finding</p>
		<textarea style="width:99%" rows="15" border="0" id="finding"></textarea>
	</form>
</body>
</html>